﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace FlightTicketModel
{
    public class FlightTicketPrice : EntityBase
    {
        public int AirlineID { get; set; }
        [MaxLength(3)]
        public string AirCode1 { get; set; } = "";
        [MaxLength(3)]
        public string AirCode2 { get; set; } = "";
        [MaxLength(3)]
        public string AirCode3 { get; set; } = "";
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime date1 { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime date2 { get; set; }
        /// <summary>
        /// 航班号
        /// </summary>
        public string flightNumber { get; set; }
        /// <summary>
        /// 舱位
        /// </summary>
        public string Cabin { get; set; } = "";
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 查询机票价格的时间
        /// </summary>
        public DateTime PriceTime { get; set; }
        [DataMember]
        public AirLineType AirLineType { get; set; } = AirLineType.OneWay;
    }
}
